package cn.com.shaom.learning.sb.data.transactional.dao;

import cn.com.shaom.learning.sb.data.transactional.User;
import org.springframework.data.jpa.repository.support.JpaEntityInformation;
import org.springframework.data.jpa.repository.support.SimpleJpaRepository;

import javax.persistence.EntityManager;

/**
 * ClassName: UserRepository
 * Description:  使用Spring data jpa 继承 JpaRepository 就可以使用很多已经封装的功能
 * Date: 2017/12/26 13:21 【需求编号】
 *
 * @author Shaom
 * @version V1.0.0
 */
public class UserRepository2 extends SimpleJpaRepository<User, Long> {

    public UserRepository2(JpaEntityInformation<User, ?> entityInformation, EntityManager entityManager) {
        super(entityInformation, entityManager);
    }
}
